<?php

namespace app\home\controller;


class Message extends Base {
    
    protected function initialize()
    {
        parent::initialize();
        $this->checkLogin();
    }
    
    /**
     * @desc 消息通知
     */
    public function index() {
        $params['userId'] = $this->userId;
        $params['pageSize'] = input('pageSize', 10);
    
        $logic = model('Message', 'logic');
        $data = $logic->index($params);
    
        $this->assign($data);
        return view();
    }
}
